/**
 * 
 */
package GUIadapter;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;

/**
 * @author poul
 * 
 */
@SuppressWarnings("serial")
public class PanelTableModelAdapter extends JPanel
{
	private JTable table;
	public PanelTableModelAdapter(AbstractTableModel model)
	{
		setLayout(new BorderLayout(0, 0));
		
		JScrollPane scrollPane = new JScrollPane();
		add(scrollPane, BorderLayout.CENTER);
		
		table = new JTable(model);
		scrollPane.setViewportView(table);
	}

	public JTable getTable()
	{
		return this.table;
	}

}
